import {hasPermission} from "@/utils/permiss";

/**
 * 权限指令 模板使用
 */
export const permiss = {
    mounted(el, binding) {
        if (!hasPermission(binding.value)) {
            el.remove()
        }
    },
}
